// setTimeout(function () {
//   var a = 'hello';
//   setTimeout(function () {
//     var b = 'lagou';
//     setTimeout(function () {
//       var c = 'I ♥ U';
//       console.log(a + b + c);
//     }, 10);
//   }, 10);
// }, 10);

const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));

(async () => {
  await sleep(10);
  var a = 'hello';
  await sleep(10);
  var b = 'lagou';
  await sleep(10);
  var c = 'I ♥ U';
  console.log(a + b + c); // 小米一面出了类似的题。总觉得这样过于简单，不知道是不是我没有get到题目的点
})();
